package com.oa.co.bo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Reissue_cardBo {

    @ExcelIgnore
    private Integer id;
    //单据
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "单据")
    private String d_id;
    //申请人
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "申请人")
    private String applicant;
    //所属部门
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "所属部门")
    private String subordinate_department;
    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "创建时间")
    private Date creation_time;
    //补卡时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "补卡时间")
    private Date card_filling_time;
    //补卡原因
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "补卡原因")
    private String reason_for_card_replacement;
    //补卡类型
    @ExcelIgnore
    private Integer t_id;

    //关联type表中的t_name
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "补卡类型")
    private String t_name;
    @ExcelIgnore
    private String t_idval;
}
